﻿<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />


	<link href="__STATIC__admin/css/admin-min.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" type="text/css" href="__STATIC__admin/css/admin.css" />
	<link href="__STATIC__admin/iconfont/1.0.7/iconfont.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" type="text/css" href="__STATIC__admin/css/icheck/icheck.css" />
	<link rel="stylesheet" type="text/css" href="__STATIC__admin/css/skin/default/skin.css" id="skin" />
	<link href="__STATIC__admin/css/admin-style.css" rel="stylesheet" type="text/css" />


<title>系统设置</title>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页
	<span class="c-gray en">&gt;</span>
	<a href="{:U('admin/config/index')}">系统设置</a>
	<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
</nav>
<style>
	.tabCon{
		padding: 10px 0px 20px;
	}
	.page-container{
		padding-top:10px;
	}
</style>
<div class="page-container container">
	<form class="form form-horizontal" id="form-sysconfg" action="" method="post">
		<div id="tab-system" class="HuiTab">
			<div class="tabBar cl"><span>基本设置</span><span>SEO设置</span><span>邮件设置</span><span>URL模式</span><span>其他设置</span></div>
<!--			基本设置 开始-->
			<div class="tabCon">
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>网站名称：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text"  id="website-title" placeholder="控制在25个字、50个字节以内" value="<?php echo $data['cfg_webname'];?>" class="input-text" name="cfg_webname">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>网站域名：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" class="input-text" style="width: 30%;" value="<?php echo $data['cfg_basehost'];?>" placeholder="" id="" name="cfg_basehost">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2"><span class="c-red"></span>网站风格：</label>
					<div class="formControls col-xs-8 col-sm-9" style="width: 30%;"> <span class="select-box">
				<select name="DEFAULT_THEME" class="select">
					<?php foreach($templateDir as $k => $v){?>
					<option value="<?php $them = str_replace('Template/','',$v); echo $them ?>" <?php if($data['DEFAULT_THEME'] == $them){?> selected="selected" <?php } ?> ><?php echo str_replace('Template/','',$v);?></option>
					<?php } ?>
				</select>
				</span> </div>
				</div>

				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2"><span class="c-red"></span>信息审核：</label>
					<div class="formControls col-xs-8 col-sm-9" style="width: 30%;"> <span class="select-box">
				<select name="cfg_info_verify" class="select">
					<option value="1" <?php if($data['cfg_info_verify'] == 1){?> selected="selected" <?php } ?> >自动通过</option>
					<option value="0" <?php if($data['cfg_info_verify'] == 0){?> selected="selected" <?php } ?> >人工审核</option>
				</select>
				</span> </div>
				</div>

				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2"><span class="c-red"></span>回复审核：</label>
					<div class="formControls col-xs-8 col-sm-9" style="width: 30%;"> <span class="select-box">
				<select name="cfg_comment_verify" class="select">
					<option value="1" <?php if($data['cfg_comment_verify'] == 1){?> selected="selected" <?php } ?> >自动通过</option>
					<option value="0" <?php if($data['cfg_comment_verify'] == 0){?> selected="selected" <?php } ?> >人工审核</option>
				</select>
				</span> </div>
				</div>

<!--				<div class="row cl">-->
<!--					<label class="form-label col-xs-4 col-sm-2"><span class="c-red"></span>上传目录配置：</label>-->
<!--					<div class="formControls col-xs-8 col-sm-9">-->
<!--						<input type="text" name="cfg_medias_dir" id="website-uploadfile" placeholder="默认为UploadFiles" value="--><?php //echo $data['cfg_medias_dir'];?><!--" class="input-text" >-->
<!--					</div>-->
<!--				</div>-->

				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2"><span class="c-red"></span>底部版权信息：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" id="website-copyright" placeholder="&copy; 2016 58shiyan.com" value="<?php echo $data['cfg_powerby'];?>" class="input-text" name="cfg_powerby">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">备案号：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" name="cfg_beian" id="website-icp" placeholder="京ICP备00000000号" value="<?php echo $data['cfg_beian'];?>" class="input-text">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2"><span class="c-red" style="font-size: 10px;color: #999;">多个用","号隔开   </span>客服QQ:</label>
					<div class="formControls col-xs-8 col-sm-9">
						<textarea class="textarea" name="cfg_qq" datatype="*10-100"><?php echo $data['cfg_qq'];?></textarea>
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">客服电话：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text"  id="website-title" placeholder="" value="<?php echo $data['cfg_tel'];?>" class="input-text" name="cfg_tel">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">统计代码：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<textarea class="textarea" name="cfg_tongji"><?php echo $data['cfg_tongji'];?></textarea>
					</div>
				</div>
			</div>
<!--			基本设置 结束-->
<!--			SEO设置 开始-->
			<div class="tabCon">
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>SEO标题：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" class="input-text" style="width: 30%;" value="<?php echo $data['cfg_indextitle'];?>" placeholder="" id="" name="cfg_indextitle">
					</div>
				</div>

				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>SEO关键字：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" class="input-text" style="width: 30%;" value="<?php echo $data['cfg_keywords'];?>" placeholder="" id="" name="cfg_keywords">
					</div>
				</div>

				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">SEO描述：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<textarea name="cfg_description" cols="" rows="" class="textarea"  ><?php  echo $data['cfg_description'];?></textarea>
						<p class="textarea-numberbar"><em class="textarea-length"></p>
					</div>
				</div>
			</div>
<!--			SEO设置 结束-->
<!--			邮件设置 开始-->
			<div class="tabCon">
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">SMTP服务器：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text"  class="input-text" value="<?php echo $data['cfg_mail_host'];?>" id="" name="cfg_mail_host">
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">发件邮箱名：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" class="input-text" value="<?php echo $data['cfg_mail_username'];?>" id="" name="cfg_mail_username" >
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">发件人地址：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" class="input-text" value="<?php echo $data['cfg_mail_from'];?>" id="emailName" name="cfg_mail_from" >
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">发件人姓名：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="text" class="input-text" value="<?php echo $data['cfg_mail_fromname'];?>" id="emailName" name="cfg_mail_fromname" >
					</div>
				</div>
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2">邮箱密码：</label>
					<div class="formControls col-xs-8 col-sm-9">
						<input type="password" id="email-password" value="<?php echo $data['cfg_mail_password'];?>" class="input-text" name="cfg_mail_password">
					</div>
				</div>
<!--				<div class="row cl">-->
<!--					<label class="form-label col-xs-4 col-sm-2">设置邮件编码：</label>-->
<!--					<div class="formControls col-xs-8 col-sm-9">-->
<!--						<input type="text" id="email-address" value="--><?php //echo $data['cfg_mail_charset'];?><!--" class="input-text" name="cfg_mail_charset">-->
<!--					</div>-->
<!--				</div>-->
<!--				<div class="row cl">-->
<!--					<label class="form-label col-xs-4 col-sm-2">是否HTML格式邮件：</label>-->
<!--					<div class="formControls col-xs-8 col-sm-9">-->
<!--						<input type="text" id="email-address" value="--><?php //echo $data['cfg_mail_ishtml'];?><!--" class="input-text" name="cfg_mail_ishtml">-->
<!--					</div>-->
<!--				</div>-->
<!--				<div class="row cl">-->
<!--					<label class="form-label col-xs-4 col-sm-2">注册邮件模板：</label>-->
<!--					<div class="formControls col-xs-8 col-sm-9">-->
<!--						<textarea name="cfg_mail_reg" cols="" rows="" class="textarea"  >--><?php // echo $data['cfg_mail_reg'];?><!--</textarea>-->
<!--						<p class="textarea-numberbar"><em class="textarea-length"></p>-->
<!--					</div>-->
<!--				</div>-->
<!---->
<!--				<div class="row cl">-->
<!--					<label class="form-label col-xs-4 col-sm-2">找回密码邮件模板：</label>-->
<!--					<div class="formControls col-xs-8 col-sm-9">-->
<!--						<textarea name="cfg_mail_getpassword" cols="" rows="" class="textarea"  >--><?php // echo $data['cfg_mail_getpassword'];?><!--</textarea>-->
<!--						<p class="textarea-numberbar"><em class="textarea-length"></p>-->
<!--					</div>-->
<!--				</div>-->

			</div>
<!--			邮件设置 结束-->
<!--			url模式设置 开始-->
			<div class="tabCon">
				<div class="row cl">
					<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>url模式：</label>
					<div class="formControls col-xs-8 col-sm-9" style="width: 30%;"> <span class="select-box">
				<select name="URL_MODEL" class="select">
					<option value="0" <?php if($data['URL_MODEL'] == 0){?> selected="selected" <?php } ?> >普通模式</option>
					<option value="1" <?php if($data['URL_MODEL'] == 1){?> selected="selected" <?php } ?> >PATHINFO模式</option>
					<option value="2" <?php if($data['URL_MODEL'] == 2){?> selected="selected" <?php } ?> >REWRITE模式</option>
					<option value="3" <?php if($data['URL_MODEL'] == 3){?> selected="selected" <?php } ?> >兼容模式</option>
				</select>
				</span> </div>
				</div>
			</div>
<!--			url模式设置 结束-->
<!--			其他设置 开始-->
			<div class="tabCon">

			</div>
<!--			其他设置 结束-->

				
			</div>
		</div>
		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
				<button onClick="article_save_submit();" class="btn btn-primary radius" type="submit"><i class="Hui-iconfont">&#xe632;</i> 保存</button>
				<button onClick="layer_close();" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
			</div>
		</div>
	</form>
</div>

<script type="text/javascript" src="__STATIC__admin/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="__STATIC__admin/layer/2.1/layer.js"></script>
<script type="text/javascript" src="__STATIC__admin/icheck/jquery.icheck.min.js"></script>
<script type="text/javascript" src="__STATIC__jquery.validation/1.14.0/jquery.validate.min.js"></script>
<script type="text/javascript" src="__STATIC__jquery.validation/1.14.0/validate-methods.js"></script>
<script type="text/javascript" src="__STATIC__jquery.validation/1.14.0/messages_zh.min.js"></script>
<script type="text/javascript" src="__STATIC__admin/js/admin.js"></script>
<script type="text/javascript" src="__STATIC__admin/js/admin-admin.js"></script>

<script type="text/javascript">
$(function(){
	$('.skin-minimal input').iCheck({
		checkboxClass: 'icheckbox-blue',
		radioClass: 'iradio-blue',
		increaseArea: '20%'
	});
	$.Huitab("#tab-system .tabBar span","#tab-system .tabCon","current","click","0");

	$("#form-sysconfg").validate({
		rules: {
			cfg_webname: "required",
			cfg_basehost: "required",
		},
		messages: {
			cfg_webname: "请输入网站名称",
			cfg_basehost: "请输入网站域名",
		}
	});


});
</script>

</body>
</html>